﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DongFangGuoKai.WMSPlatform.Core.Migrations
{
    public partial class M11 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<string>(
                name: "TagIndex",
                table: "t_StackingStorage",
                type: "nvarchar(200)",
                nullable: true,
                oldClrType: typeof(string),
                oldType: "nvarchar(max)");

            migrationBuilder.AlterColumn<string>(
                name: "SeqNum",
                table: "t_StackingStorage",
                type: "nvarchar(200)",
                nullable: true,
                oldClrType: typeof(string),
                oldType: "nvarchar(max)");

            migrationBuilder.AlterColumn<string>(
                name: "NWall",
                table: "t_StackingStorage",
                type: "nvarchar(200)",
                nullable: true,
                oldClrType: typeof(string),
                oldType: "nvarchar(max)");

            //migrationBuilder.CreateTable(
            //    name: "Boxes",
            //    columns: table => new
            //    {
            //        Id = table.Column<int>(type: "int", nullable: false)
            //            .Annotation("SqlServer:Identity", "1, 1"),
            //        OrderNo = table.Column<string>(type: "nvarchar(max)", nullable: true),
            //        OrderId = table.Column<int>(type: "int", nullable: false),
            //        SampleTotalCount = table.Column<int>(type: "int", nullable: true),
            //        Status = table.Column<int>(type: "int", nullable: false),
            //        BusinessId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
            //        LocationCode = table.Column<string>(type: "nvarchar(max)", nullable: true),
            //        BoxLable = table.Column<int>(type: "int", nullable: false),
            //        BoxId = table.Column<int>(type: "int", nullable: false),
            //        CreateDate = table.Column<DateTime>(type: "datetime2", nullable: true),
            //        CreateUserId = table.Column<int>(type: "int", nullable: true),
            //        CreateUserName = table.Column<string>(type: "nvarchar(max)", nullable: false)
            //    },
            //    constraints: table =>
            //    {
            //        table.PrimaryKey("PK_Boxes", x => x.Id);
            //    });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            //migrationBuilder.DropTable(
            //    name: "Boxes");

            migrationBuilder.AlterColumn<string>(
                name: "TagIndex",
                table: "t_StackingStorage",
                type: "nvarchar(max)",
                nullable: false,
                defaultValue: "",
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true);

            migrationBuilder.AlterColumn<string>(
                name: "SeqNum",
                table: "t_StackingStorage",
                type: "nvarchar(max)",
                nullable: false,
                defaultValue: "",
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true);

            migrationBuilder.AlterColumn<string>(
                name: "NWall",
                table: "t_StackingStorage",
                type: "nvarchar(max)",
                nullable: false,
                defaultValue: "",
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true);
        }
    }
}
